package com.crungoo.filters;

import com.crungoo.AppConfig;
import com.crungoo.service.MyService1;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author fujc-dev@qq.com
 * @description TODO
 * @date 2023/6/28 13:08
 */

public class Programs {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		//System.out.println(context.getBean("myService1")); // 肯定是未找到，报错
		System.out.println(context.getBean("myService2"));
	}
}
